<?php
/**
 * Description of ValidateRequired
 *
 * @author Damiano Ciarla
 */
class ValidateRequired implements Validate
{
    public function validate($field, $value, $condition = null)
	{
		if(is_null($value) || strlen($value) == 0 || $value == "")
			return T::_("Il campo") . " <b><u>" . ucfirst($field) . "</u></b> " . T::_("è obbligatorio");

		return TRUE;
	}
}
?>
